

        <g:set var="entityName" value="${message(code: 'advice.label', default: 'Advice')}" />
            <g:form method="post" >
                <g:hiddenField name="id" value="${adviceInstance?.id}" />
                <g:hiddenField name="version" value="${adviceInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="personname"><g:message code="advice.personname.label" default="Personname" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: adviceInstance, field: 'personname', 'errors')}">
                                    <g:textField name="personname" maxlength="50" value="${adviceInstance?.personname}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="unit"><g:message code="advice.unit.label" default="Unit" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: adviceInstance, field: 'unit', 'errors')}">
                                    <g:textField name="unit" maxlength="200" value="${adviceInstance?.unit}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tel"><g:message code="advice.tel.label" default="Tel" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: adviceInstance, field: 'tel', 'errors')}">
                                    <g:textField name="tel" maxlength="50" value="${adviceInstance?.tel}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="email"><g:message code="advice.email.label" default="Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: adviceInstance, field: 'email', 'errors')}">
                                    <g:textField name="email" maxlength="100" value="${adviceInstance?.email}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="content"><g:message code="advice.content.label" default="Content" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: adviceInstance, field: 'content', 'errors')}">
                                    <g:textArea name="content" cols="40" rows="5" value="${adviceInstance?.content}" />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
